﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Revis.VClinicNet.App.Internal.Dto;

namespace Revis.VClinicNet.App.Internal
{
    public interface IWorkerUserService 
    {
        WorkerUserDto Find(string login, string password);
        WorkerUserDto Find(string login);
        TDto Find<TDto>(long userId);
        long Create(WorkerUserCreateDto createDto);
        long Edit(WorkerUserEditDto editDto);
        long ChangePassword(WorkerUserModifyPasswordDto passwordDto);
        IList<WorkerUserInfoDto> FindBy(string field, string value);
        IList<WorkerUserInfoDto> FindBy(string field, string value, bool activity);
        bool Delete(long userId);

        
    }
}
